import request from '@/utils/request'

// 获取在岗人员列表
export function getEmployees(params) {
  const { page = 0, size = 10, search = '' } = params || {}
  return request({
    url: '/api/admin/employees',
    method: 'get',
    params: {
      page,
      size,
      search
    }
  })
}

// 删除在岗人员
export function deleteEmployee(id) {
  return request({
    url: `/api/admin/employees/${id}`,
    method: 'delete'
  })
} 